home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSIIIIGGGGPPPPRRRROOOOCCCCMMMMAAAASSSSKKKK((((2222)))) SSSSIIIIGGGGPPPPRRRROOOOCCCCMMMMAAAASSSSKKKK((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- sigprocmask - alter and return previous state of the set of blocked
- signals (POSIX)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssiiiiggggnnnnaaaallll....hhhh>>>>
-
- iiiinnnntttt ssssiiiiggggpppprrrrooooccccmmmmaaaasssskkkk((((iiiinnnntttt ooooppppeeeerrrraaaattttiiiioooonnnn,,,, ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, ssssiiiiggggsssseeeetttt____tttt ****oooosssseeeetttt))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_i_g_p_r_o_c_m_a_s_k manipulates the set of signals which are blocked from
- delivery to the thread.
-
- A non-NULL _s_e_t specifies the set of signals to use in modifying the
- currently-active set, and the incoming signals may be added to, deleted
- from, or completely replace the active set, as specified by the _o_p_e_r_a_t_i_o_n
- parameter, which may have the following values (as defined in
- <_s_i_g_n_a_l._h>):
-
- SSSSIIIIGGGG____NNNNOOOOPPPP Do not alter current signal mask
- SSSSIIIIGGGG____BBBBLLLLOOOOCCCCKKKK Add specified signals to those in current mask
- SSSSIIIIGGGG____UUUUNNNNBBBBLLLLOOOOCCCCKKKK Remove the specified signals from current mask
- SSSSIIIIGGGG____SSSSEEEETTTTMMMMAAAASSSSKKKK Replace current mask with incoming one
-
- If _o_s_e_t is not NULL, the current set of blocked signals (before
- modification) is returned in the space to which it points. In this way,
- with a NULL _s_e_t and SSSSIIIIGGGG____NNNNOOOOPPPP _o_p_e_r_a_t_i_o_n the user can determine the current
- signal mask.
-
- Routines described in _s_i_g_s_e_t_o_p_s(3) are used to create and examine the _s_e_t
- and _o_s_e_t signal masks.
-
- It is not possible to block SSSSIIIIGGGGKKKKIIIILLLLLLLL or SSSSIIIIGGGGSSSSTTTTOOOOPPPP; this restriction is
- silently imposed by the system.
-
- POSIX specifies (contrary to BSD and System V) that a thread _m_a_y block
- SSSSIIIIGGGGCCCCOOOONNNNTTTT. However, a) SSSSIIIIGGGGCCCCOOOONNNNTTTT _a_l_w_a_y_s restarts the receiving thread
- (unless it is waiting for an event such as I/O), and b) if the receiving
- process has installed a handler for SSSSIIIIGGGGCCCCOOOONNNNTTTT and blocked the signal, the
- thread will NOT enter its handler until it unblocks SSSSIIIIGGGGCCCCOOOONNNNTTTT. (The signal
- will remain pending.)
-
- _s_i_g_p_r_o_c_m_a_s_k will fail if:
-
- [EFAULT] _s_e_t or _o_s_e_t point to memory that is not a part of the
- process's valid address space.
-
- [EINVAL] _O_p_e_r_a_t_i_o_n is not a valid set-operation (as described
- above: SSSSIIIIGGGG____NNNNOOOOPPPP, SSSSIIIIGGGG____BBBBLLLLOOOOCCCCKKKK, SSSSIIIIGGGG____UUUUNNNNBBBBLLLLOOOOCCCCKKKK, or SSSSIIIIGGGG____SSSSEEEETTTTMMMMAAAASSSSKKKK).
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSIIIIGGGGPPPPRRRROOOOCCCCMMMMAAAASSSSKKKK((((2222)))) SSSSIIIIGGGGPPPPRRRROOOOCCCCMMMMAAAASSSSKKKK((((2222))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- kill(2), sigaction(2), sigpending(2), sigsuspend(2), sigsetops(3).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- A 0 value indicates that the call succeeded. A -1 return value indicates
- that an error occurred and _e_r_r_n_o is set to indicate the reason.
-
- WWWWAAAARRRRNNNNIIIINNNNGGGG
- The POSIX and System V signal facilities have different semantics. Using
- both facilities in the same program is ssssttttrrrroooonnnnggggllllyyyy ddddiiiissssccccoooouuuurrrraaaaggggeeeedddd and will
- result in unpredictable behavior.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-